package com.ruoyi.sys.personnel.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 人员管理/访客管理/到访记录（到访列表）
 */
@Data
@TableName("tb_visiting_records")
public class TbVisitingRecords {
    @TableId(value = "vr_id", type = IdType.AUTO)
    private Integer vrId;
    @TableField("vr_name")
    private String vrName;
    @TableField("om_id")
    private Integer omId;
    @TableField("vr_type")
    private Integer vrType;
    @TableField("vr_card")
    private Integer vrCard;
    @TableField("vr_mode")
    private Integer vrMode;
    @TableField("vr_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date vrDate;
    @TableField("eg_id")
    private Integer egId;
    @TableField("vr_photograph")
    private String vrPhotograph;
    @TableField("vr_phone")
    private String vrPhone;

    private TbEntranceGuard tbeg;
    private TbOrganizationManagement tbom;
}
